package com.skt.TFriend.Data;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class Weather_Data implements Parcelable {
		
	private String wfKor = ""; //날씨한국어
	private String temp  = ""; //온도

	public Weather_Data(){		
	}
	
	public Weather_Data(Parcel src){
		wfKor = src.readString();
		temp  = src.readString();
	}
	
	public String getWfKor() {
		return wfKor;
	}


	public void setWfKor(String wfKor) {
		this.wfKor = wfKor;
	}


	public String getTemp() {
		return temp;
	}


	public void setTemp(String temp) {
		this.temp = temp;
	}

	public static final Creator<Weather_Data> CREATOR = new Parcelable.Creator<Weather_Data>() {
		public Weather_Data createFromParcel(Parcel src) {
		    return new Weather_Data(src);
		  }

		@Override
		public Weather_Data[] newArray(int size) {
			// TODO Auto-generated method stub
			return new Weather_Data[size];
		}
	};
//	public class CustomCreator implements Parcelable.Creator<Weather_Data> {
//		  public Weather_Data createFromParcel(Parcel src) {
//		    return new Weather_Data(src);
//		  }
//
//		  public Weather_Data[] newArray(int size) {
//		    return new Weather_Data[size];
//		  }
//	}
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(wfKor);
		dest.writeString(temp);
	}

}
